<?php
namespace app\admin\controller;

class Other extends Base{
    /**
     * 发送邮件
     */
    public function sendEmail(){
        if ($_POST) {
            $info = I('post.');
            $email = $info['name'];
            $title = $info['title'];
            $content = $info['tips'];
            $send = sendMail($email, $title, $content);
            
            if ($send) {
                $this->ajaxReturn('成功');
            }else{
                $this->ajaxReturn('失败');
            }
        }else{
            $this->display();
        }
        
    }
    
    /**
     * 上传
     */
    public function webuploader(){
        $this->display();
    }
    
   
}

?>